package com.envper.common.mapper;

import com.envper.common.domain.dto.AlarmDto;
import com.envper.mysql.domain.entity.TAlarm;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AlarmMapper {

    AlarmMapper INSTANCE = Mappers.getMapper(AlarmMapper.class);

    AlarmDto toAlarmDto(TAlarm tAlarm);

    List<AlarmDto> toAlarmDtoList(List<TAlarm> tAlarmList);
}
